package mypro1;

import oop.MyMath;

public class TestMethod {

    public static void test01() {
        int sum1 = 0;
        int sum2 = 0;
        for (int a = 0; a <= 100; a++) {
            if (a % 2 != 0) {
                sum1 = sum1 + a;
            } else {
                sum2 = sum2 + a;
            }
        }
        System.out.println("奇数和为" + sum1);
        System.out.println("偶数和为" + sum2);
    }


    public static void test03(int i, int j, int k) {
        for (int b = 1; b <= i; b++) {
            if (b % j == 0) {
                System.out.print(b + "\t");
                if (b % (j * k) == 0) {
                    System.out.println();
                }
            }
        }
    }

    public static void main(String[] args) {
        test01();
        //	test02();
        test03(1000, 5, 5);
        int s = MyMath.add(3, 5);
        System.out.println(s);
    }
}
